package org.testis.testdriver.validation;

import org.testis.testdriver.*;
import org.testis.testdriver.AtofEnumaration.DebuggingMode;

/**
 * This class is used to make validation according to Test Plan
 * Startegy.
 * 
 * @author barisergun
 */
public class TestPartValidateTestPlanStrategy extends TestPartValidateStrategy {

    public TestPartValidateTestPlanStrategy(TestPart inUse) {
        super(inUse);
    }

    @Override
    public boolean validatePartResult(TestIterator testIterInRun,
            DebuggingMode mode,
            boolean partResult) {
        return true;
    }

    @Override
    protected boolean validateIfToContinue(boolean partResult) {
        return true;

    }

    @Override
    public boolean validateFinalPartResult(TestIterator testIterInRun,
            DebuggingMode mode,
            boolean partResult) {
        testPartInRun.getParent().andTestPartResult(partResult);

        boolean result = finalLoggingforEasyContainers(partResult);

        return result;
    }

    @Override
    protected void validateFinalMatrix(StepContainer refCur) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
